package com.xindz.hgq.judgeevent.bean;

import java.io.Serializable;

/**
 * @name HGQBase
 * @class name：com.xindz.hgq.judgeevent.bean
 * @describe describe
 * @anthor XINDZ
 * @time 2018/5/2 14:56
 * @change
 * @chang time
 * @class describe
 */
public class JEventBean implements Serializable {

    /**
     * JEvent 结果是成功
     */
    public static final int JE_RESULT_SUCCESS = 0;
    /**
     * JEvent 结果是失败
     */
    public static final int JE_RESULT_FAIL = 1;


    /**
     * 用来作为唯一标识取值为创建时的系统时间
     */
    private long JETag;

    /**
     * 保存JEvent 是否成功
     */
    private int JEResult;

    public JEventBean() {
        this.JETag = System.currentTimeMillis();
    }

    /**
     * 创建端通过该方法获取创建TAG 并保存用来区分
     *
     * @return JETag
     */
    public long getJETag() {
        return JETag;
    }

    public int getJEResult() {
        return JEResult;
    }

    /**
     * JEvent 成功
     */
    public void setJeResultSuccess() {
        this.JEResult = JE_RESULT_SUCCESS;
    }

    /**
     * JEvent 失败
     */
    public void setJeResultFail() {
        this.JEResult = JE_RESULT_FAIL;
    }
}
